

-- D:\GOA\reslibrary\templete\res\item\item.phone.lua.xsl
gr_module("gm_xinbanchunzhongyun")

cgfordermarkitemItem = inherit(GmCtrl.ControlBase):name("cgfordermarkitemItem")

cgfordermarkitemItem.init = function (self,parent,aid)

	local top = self
	local win = parent.hostWindow
	local fid = aid or "cgfordermarkitemItem"
	GmCtrl.ControlBase.init(self,parent,fid,true)

	
	self.id = self:get_child("id")
	
	self.order_id = self:get_child("order_id")
	
	self.ctype = self:get_child("ctype")
	
	self.name = self:get_child("name")
	
	self.create_time = self:get_child("create_time")
	
	self.handler = self:get_child("handler")
	
	self.handler_id = self:get_child("handler_id")
	
	
	self:set_click(function(self)
		local ttop = top
		top.hostWindow:addNavFrame('__modal__info',nil,function(frame)
			local tttop = ttop
			print('########## $$$$$$$ 0')
			if frame and frame.set_data then
				frame:set_data(tttop.data)
			end
		end)
	end)
	
	
end


cgfordermarkitemItem.set_data = function(self,data)
	self.data = data
	for a,b in pairs(data) do
		if data[a] and self[a] and self[a].set_inner_text and self[a].is_init and self[a]:is_init() then
			self[a]:set_inner_text(tostring(data[a]))
		end
	end
end


	